<?php
class WJ_Widget_StaticHtml extends Engine_Widget_Abstract{
	
    public function init(array $config) { 

    	$options['name'] 		= 'Static Html';
    	$options['description'] = 'Widget containing static HTML';
    	$options['idbase'] 		= 'staticwidget';
    	$options['wdth'] 		= '';
    	$options['height'] 		= '';
 
    }
    
    public function run() {
    	$html = $this->config['widget_content'];
    	
    	if (isset($config['widget_title'])) {
    		$title = $options['widget_title'];
    		$widget = $this->theme->sidebarBlock($html, $title);
    	} else {
    		$widget = $this->theme->sidebarBlock($html);
    	}
 
    	return $widget;
    }
	
    
    
}

?>